<!DOCTYPE HTML>
<html lang="zh-CN" style="background: #efeff4;"><head>
<title>{$name}</title>
<meta charset="UTF-8">
<meta name="viewport" content=" initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
	<link href="{$Think.config.RESOURCEURL}wx_assets/bootstrap/bootstrap.min.css" rel="stylesheet">

	<link href="{$Think.config.RESOURCEURL}wx_assets/css/common.css{$Think.config.RESOURCE_VER}" rel="stylesheet">
	<link href="{$Think.config.RESOURCEURL}wx_assets/micontent/materiaDetail.css{$Think.config.RESOURCE_VER}" rel="stylesheet">
<!--<link href="{$Think.config.RESOURCEURL}wx_assets/iconfont/duobao/iconfont.css" rel="stylesheet">
-->	<link href="{$Think.config.RESOURCEURL}wx_assets/css/swiper.css" rel="stylesheet">
	
	<link href="{$Think.config.RESOURCEURL}wx_assets/indiana/style.css" rel="stylesheet">
	<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/jquery-2.0.3.min.js{$Think.config.RESOURCE_VER}"></script>
	<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/bootstrap/bootstrap.min.js{$Think.config.RESOURCE_VER}"></script>
	<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/swiper.jquery.min.js{$Think.config.RESOURCE_VER}"></script>	
	<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/wx_share.js{$Think.config.RESOURCE_VER}"></script>
	<script src="{$Think.config.RESOURCEURL}wx_assets/js/util.js{$Think.config.RESOURCE_VER}" type="text/javascript"></script>
	<script src="{$Think.config.RESOURCEURL}wx_assets/js/product/timer.js" type="text/javascript"></script>	
    <script src="{$Think.config.RESOURCEURL}wx_assets/js/layer.m.js" type="text/javascript"></script>	
</head>
<body >
	<header class="main" >
			<div class="ui-top child">
				<a onclick="history.go(-1);" class="ui-tBtn"><i class="iconfont">&#xe600;</i></a>
				<div class="middle">
					计算详情
				</div>
				<a onclick="calculMethor()" class="ui-tBtn ui-tbtxt">计算方式</a>			
			</div>
			
	</header>
	
	<div class="ui-calcul" style="margin-bottom: 20px;">
		<div style="background: #009ddf; color: white;border-radius: 4px;">
			<p>计算公式</p>
			<p>[(数值A+数值B)÷商品所需人次]取余数</p>
			<p>+100001</p>
		</div>
		<div onclick="toggleTimeList(this)" style="margin: 0px;border-bottom: 1px solid #ddd;">
			<p class="stitle">数值A</p>
			<p>=截止该商品开奖时间前最后50条全站参与记录</p>
			<p>={$timeTogether}</p>
			<p class="cal-drop">展开↓</p>
		</div>
		<div class="time-list" style="display: none;">
			<table class="table">
				<thead>
					<tr>
						<td>夺宝时间</td>
						<td>用户账号</td>
					</tr>
				</thead>
				<tbody>
					<volist name="timeList" id="tl">
						<tr>
							<td>{$tl.updateTime} → {$tl.number}</td>
							<td>
								{$tl.nickname}
							</td>
						</tr>
					</volist>
				</tbody>
			</table>
		</div>
		<div>
			<p class="stitle">数值B</p>
			<p>=最近一期中国福利彩票“老时时彩”的开奖结果</p>
			<p>=<if condition="$lottery.periodState lt 3">
				<i style="color: #ff8f12;">正在等待开奖...</i>
				<else />
				{$lottery.lotteryNumber}
				(第{$lottery.lotteryPerId}期)
			</if>
			
			</p>
			<a href="http://caipiao.163.com/award/cqssc/"><p class="cal-drop">开奖查询</p></a>
		</div>
		<div>
			<p class="stitle">计算结果</p>
			<p style="text-align: center;">幸运号码:
				<if condition="$lottery.periodState lt 3">
				<i style="color: #ff8f12;">正在等待开奖...</i>
				<else />
				{$lottery.wNumber}
				</if>
			</p>
		</div>
	</div>
	
</body>
<script>
	function toggleTimeList(_this){
		$('.time-list').slideToggle(100,function(){
			if($(this).css("display")=="none")
			{
				$(_this).find('.cal-drop').html('展开↓');
			}
			else
			{
				$(_this).find('.cal-drop').html('收起↑');
			}
		})
	}
	function calculMethor()
	{
		layer.open({
			 content: '<h2 class="cmTitle">幸运号码计算方式：</h2>'
			 +'<div class="cmBox">'
			 +'<p>1.商品的最后一个号码分配完毕后，将公式该分配时间点前本站全部商品的最后50个参与时间；</p>'
			 +'<p>2.将这50个时间的数值进行求和（得出数字A）（每个时间按时、分、秒的顺序组合，如20:15:25则为201525）；</p>'
			 +'<p>3.为保证公平公正公开，系统还会等待一小段时间，取最近下一期中国福利彩票“老时时彩”的开奖结果（一个五彩数值B）；</p>'
			 +'<p>4.（数值A+数值B）除以该商品总需人次得到的余数+原始数10000001，得到最终幸运号码，拥有该幸运号码者，直接获得该商品。</p>'
			 +'</div>',
   			 btn: ['确定']
		});
	}
	
</script>
</html>
